﻿using Core.Domain.Customers;
using Net.Web.Framework.Mvc;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Net.Web.Models.Customers
{
    /// <summary>
    /// 登陆实体
    /// </summary>
    public partial class LoginModel : BaseModel
    {
        /// <summary>
        /// 注册方式
        /// </summary>
        public RegisterMethod NameMode { get; set; }
        
        [DisplayName("登录名")]
        [AllowHtml]
        public string Name { get; set; }
        
        [DataType(DataType.Password)]
        [DisplayName("登陆密码")]
        [AllowHtml]
        public string Password { get; set; }

        [DisplayName("记住我")]
        public bool RememberMe { get; set; }

        /// <summary>
        /// 是否启用验证码
        /// </summary>
        public bool DisplayCaptcha { get; set; }
    }
}